Is 3 weeks enough time to fully recover?

In short, I have 3 weeks between my surgery and going abroad to study. Would this be enough recovery time so that I don’t have to deal with any pain/discomfort while I’m abroad?