Upper back/neck pain

I just completed my first decent ride on a road bike (50km) and had some horrible upper back/neck pain towards the end. I knew it wasn't going to be pleasant but it made that portion of the ride pretty miserable.

My question is: is this something that gets better or should I look into raising the drop bar?