Working out

How long do you have to wait until you can work out after giving birth? 
My little one is 3 weeks old today and if this matters, I did have to have an episiotomy. Not sure if that has anything to do with working out afterwards.