The slight longer answer is yes it is possible but it can be a little tricky and there are possible complications.
You should be aware of the copyright of the applet and this should only be used for educational purposes to find out how an applet does something (in the same way that you take a peak at a web pages source but you don't just take the code and pass it off as your own - if you have an honest bone in your body).