is this infected?? HELP

i think i have an infected toenail but idk. it hurts like all the time and there is pus that comes out. it has been like 2 weeks since i noticed it. I have been putting antibacterial cream on it and it still looks the same. should i go to the er?