Can I sue for damages if I just bought a car and somebody rearended me I haven't even made a payment yet?

If it was there fault their insurance company will be responsible for the damages. So yes you can sue, but most likely this won't be necessary as long as the insurance company gives you fair compensation.