Cut in anus

I tried to do anal yesterday and as the guy was thrusting, it’s started to burn so I figured I cut myself when I shaved. I’ve done anal in the past before and we used lube but as he would thrust more and more it would burn a lot so we stopped. Should I be worried that the cut could get infected