It all depends on the type of surgery you had, what kind of tissues were involved, and the protocols of your physician.
I would talk with them at your follow up visit to find out what they recommend you be doing at home. Gentle range of motion activities are usually the normal course of home exercises, but again, it depends on your specific procedure and physician.