Good cleaning with soap and water should be enough. For worsening infection, you should go see your Doctor. take care.
Is there any type of over the counter cream you can buy or do you have to take medicine?
Yep, and that infection is called folliculitis. Its more likely that you'd get it since you shave.
The infection is caused by bacteria, and you should get this checked by your doctor. If its bad enough, you might need an antibiotic.
I'd throw the razor away, too, and use a new one.
Aj