Taking your examinations 3 weeks after a rhinoplasty is certainly acceptable. No need to cancel your surgery
Although most patients feel quite well about a week after rhinoplasty surgery, it is hard to predict the effect that your surgery will have on your ability to adequately prepare for your exams. Everyone's recovery after rhinoplasty is different. Additionally, everyone prepares differently for exams. Make sure you allow yourself enough time for recovery.