Is this an infection

Cate

I went to the pool and all of a sudden I had this pain on my big toe. I checked and there was nothing and the pain is stil continuing but nothing like it’s disrupting my sleep or daily life but when I squeeze my toe or touch the side it hurts. Earlier I squeezed it and some pus came out but nothing else. I took a pic and this is how it’s looking. Does it look infected or should I go to the doctor?