Welcome Gianna
As others have said, major surgery and being in pain makes some depression completely natural!
It will pass...and at 2-3 weeks, you're right smack dab in the middle of the worst of it.
Hang in there, it will get better with rest, elevation, and icing....and take your meds on time!!