Yes, you can.

I'm going to suggest going the other way though, and at least try to make a rudementary game in Java. Why? Java is free, there are 1001 tutorials on how to learn Java and Java game programming on the web, and it's easier to learn.

I agree with bipper that C++ would eventually be the way to go for what you want to do, but it's not feasible for you at this point from reading your posts. Java is easier to learn and it's much more available. You will learn the basics of OOP (Object Orianted Programming - a fundamental design principle championed by Java that originated in C++ and you will NEED to understand this concept if you are to develop a half-way decent game) in a much more controlled environment and once you learn the basics I think that you can then see if you want to move to game over to C++.