Could a dreamer associate an emotion to an imaginary switch and flip it on to experience the emotion?

Could the same thing be done with feelings and sensations? Things like pleasure and pain? Tactile sensations? Colors? Sounds? Tastes and Smells?