Does iPhone 5 use same charger as the older iPhones?

I have an Iphone 5 and need to charge it but forgot charger, Someone offered to use their iPhone charger, it's an older one, not iPhone 5.Is it safe to use it/compatible?

Added (1). I've tried reading multiple threads and most I'm finding says that you can use any usb charger including from older iphones. But I'm also seeing some that says you can't, but there's a lot less of those posts. I haven't seen plug for old IPhone vs my iPhone 5 yet so don't know if it's smaller plug or not but guess I can wait till they bring their charger to see if it'd even fit, then that would be a quick answer lol.

No uses a new one, a lightning bolt charger it is alot smaller