Can you use a personal loan to buy a car?

Can you use a personal loan to buy a car?