Yes, you can sleep after a workout, especially if you went to the gym in the evening and burned a lot of calories. Rest is very important for the muscles to repair and grow. However, make sure you have a protein-rich meal (and little carbs) and water after the workout before you sleep.