In the 1800s, sexual dreams were considered to be a great source of worry to the men and women who had them because, at the time, sexual dreams were thought to cause mental and physical illness. It is, however, over-simplistic to describe all sexual dreams as a form of frustration or wish-fulfillment. The desire to have sex is a healthy human urge and your dreams allow you to give free reign to this urge as well as to indulge in all kinds of erotic experiments in which no emotional or physical harm is inflicted upon any one.
If you do wake up from a dream in which you have had sex with someone inappropriate or that contains graphic, disturbing or violent imagery, there is most likely to be a nonsexual interpretation. However, if you do find the dream distressing and it repeatedly recurs, be sure to seek professional counseling. Unless your erotic dreams are seriously disturbing (when psychiatric help should be sought), there is no reason why you should not enjoy them like any other fantasy.
[1]