Yes, sleeping in a twisted position can increase the risk of straining or pinching nerves in the neck and back. This is because the twisted position can put undue strain on the muscles and joints, leading to tension, muscle spasms, and inflammation, which can cause nerve compression or irritation. If you're experiencing neck or back pain, it's important to talk to a healthcare professional to determine the underlying cause and develop a treatment plan that addresses your specific needs and concerns.