Pain meds?

I have never had a vaginal birth so I was wondering do they send you home with pain meds do you get pain meds after having the baby? Or is it only with c sections!? I am not a junkie or pill head but it makes me nervous since I haven’t done it and don’t wanna be judged upon asking.