nail infection??

hey ladies, a few days ago i started getting some really bad pain by the side of my nail, it felt like the end of my nail was piercing my skin so i tried to cut the nail and it cut down but the pain still persisted. now it is yellow-ish and looks like this. what is it??? do i need to go to the doctor??