Yes. It looks that the prolonged posture is the root cause of your problems. It may be coupled by neck muscle spasms with a possibility of underlying spondylitis.
Staring at the computer screen for prolonged period may also contribute to your symptoms.
You are 26 years of age, I am not anticipating any serious issues underlying.
Next Steps
Take a 5 min break and focus your eyes on distant objects for every hour of work.
Eye movement and focus exercises will help.
Take Tab Dolo 650 mg SOS for pain, when it's troublesome.
Health Tips
Observe your symptoms. If they get particularly distressing you may need blood tests and imaging. Take a neurosurgery consult in that scenario.