Covid

Hey guys plz don’t judge, I live with a high risk person so I get really anxious about covid still.

Basically I was at the store and the cashier was coughing A LOT. It was the only cashier open and he wasn’t wearing a mask and was noticeably sick, I even heard his friend tell him to stop working bc he’s coughing so much. Anyways, I was about 20-30 feet away from him and I had a mask on. I didn’t end up buying my products bc I had too much anxiety to go up to him so I put my stuff back… even if this was covid could I have caught it in this instance? (fyi I also just had covid mid July). Please let me know what u guys think