Most sources say yes, it’s okay. But here are some precautions you should take:
Don’t put a whole lemon into the garbage disposal.
If possible, remove the seeds first.
If you’re worried about your garbage disposal not being able to grind up the peel, just squeeze some lemon juice into the garbage disposal.