Yes, it could. Sleeping on an old, uncomfortable mattress results in poor quality sleep, causing you many problems. One of the many is nightmares. To lessen the prevalence of nightmares you should invest in a good quality mattress. In this article you can see the best ones on the market.