I suggest you read the brief tutorial on this site called "Getting in Touch with your Inner Class" at the following URL:
http://www.javaranch.com/campfire/StoryInner.html The quick answer is yes and they are called "top-level nested classes" and there are some special consideration for their use.
I suggest you see the article for more info.