that type of thinking is how guys end up with chronic injuries.
its a huge mistake. the reason it stops hurting is because your adrenaline gets going so you don't feel the pain anymore.
I used to train with a former Ironman and Vietnam sniper years ago.. we would do sprint work, hill work, pullups, pushups, etc. the dude even agt 62 could do 45 pullups and he looked like he was in his 30's.. anyway he would always tell me if it hurts then you need to stop and not pound away anymore. I would blow off his advice because that is what young guys do when an older guy gives them advice, typical stubborn behavior. well i ended up running into injuries and those injuries ended up being chronic. so i ended up learning my lesson the hard way
gotta learn to listen to your body unless you want to end up crippled at 40