Can I smack the car that just almost ran me over?
How would smacking the car make you feel any better?
Because I want to release my anger.
I understand why you're upset, as drivers should be aware of pedestrians as they drive.  However, you shouldn't express that anger by punching someone's car, which is wrong.  They could sue!
It's okay dude, I'm not going to do that.
Great! Reacting with anger almost always leads to negative outcomes. You made the right decision.