Depending on the surgery that a surgeon can clear a patient for working out after a certain time post-surgery.
Aside risking to cause a possible trauma to your nose if weights are being lifted or if overhead exercises are being performed, 2 weeks post-surgery with the swelling remaining and the healing progress going on may not be enough of recovery time before you engage into strenuous exercise.
Nonetheless, I encourage you to consult with your physician as he/she knows best of the details of your surgery and can assess your progress after a physical examination.
Thank you for your question.
Web reference: http://www.DrSajjadian.com