Can you donate a kidney after having an appendectomy? If yes, how long do you have to wait?

Possibly. You need to be in good health, healed from the appendectomy, and be a match for the recipient.
6 weeks. Your body should recover almost fully after 6 weeks and you could donate if you meet the other stiict criteria.