Default Car charger

Hello

I want to ask you a question i just bought a Nexus 5 previously i had a Lg Optimus One. When i bought the Optimus they gave me an official car charger.

Is it possible to use that charger also for the Nexus or i had to buy a specific one


Thank you very much!