It is totally possible you could have injured something. How bad is your pain on a 1/10 scale? Experiencing any numbness or tingling in your hands or feet? Are you able to move it at all? (If it hurts to much to move or you encounter resistance don't force it, see a doctor)
Is your neck all that's bothering you? No back or head injury?
Normally I wouldn't be concerned because as dooble posted neck pain is pretty common and is usually muscular caused by sleeping in a weird position. You can be looking at a different type of injury though when it is caused by a traumatic injury. It could be something with the spinal disks, bone, nerves, muscles. Sadly only imaging equipment can tell.
first mistake, bringing medical issues to the forums
Excuse you.