Make sure you are walking and getting other exercise. Sitting with your legs bent for long periods of time makes a person much more likely to get a blood clot. If you notice any swelling, get to a doctor.
However, I'd venture that it was probably just a cramp if it already passed. And you're pretty young, making it much less likely to be a blood clot.