yes they are razor bumps.
Please follow below guidelines to avoid hair bumps:
100% effective treatment is to let the hair grow. Once the hairs get to be a certain length they will not grow back into the skin. For most cases, totally avoid shaving for 3 to 4 weeks until all lesions have subsided, while applying a mild prescription cortisone cream to the involved skin each morning. Shaving every other day, rather than daily, will improve the condition.. If one must use a blade, water soften the hair first with a hot, wet washcloth for 5 minutes. Then use lubricating shaving gel (Edge, Aveeno), and the Aveeno PFB Bump Fighter Razor or the Flicker razor. Shave with the grain of the hair and do not stretch the skin. Use only one stroke over each area of the hairy area.
Electrolysis and laser hair removal should be considered when all else fails, but these are expensive and take repeated visits. There is a very small risk of scarring.
Medications are also prescribed to speed healing of the skin. Glycolic acid lotion 8% is effective (Alpha-hydrox, Neo-Strata, others). Prescription antibiotic gels (Benzamycin, Cleocin-T) or oral antibiotics are also used.