I would inform your AME before flying again.
It will probably be fine, they will likely check functional movement, i.e. can you move your head sufficiently and without too much discomfort.
If you're in pain still, then depending how bad, it might be able to be treated with painkillers whilst flying. I'm not an AME though so I don't know for sure what medication you can/can't fly with.
In the year after getting my initial Class One, I was doing my ATPL exams and suffered a blown knee playing rugby. Had a pretty major knee operation (ACL & meniscus repair), wasn't flying for that first year anyway and was recovered from a daily activities point of view within around 4 months. Spoke to the AME before the op and he said its fine as I'm not flying until at least after the next renewal. During renewal examination he just checked joint movement and deep tendon reflex (knee-jerk reflex test with the hammer) and said yep all good.
You'll probably have a similar operationally functional check and a thumbs up.