Baby and hard floors

My son rolls of fthe play mat or blankets I put down down he loves rolling so he’ll get to his destination like nothing but no crawling yet. My concerns are once he gets on the hard floor and he rolls and hits his head from tummy position on the floor I don’t know if he gets scared or it actually hurts him. Do I let him learn to suck it up that it’s okay or don’t let him roll on hard floors? Is it safe? He’s only actually hit head one on the floor (from tummy position) because I didn’t get there on time. I’m a first time mom so I’m trying to get peoples opinions.