It depends whether it is a Lucid Dream, or Normal Dream...

Lucid Dreams, Yes. ...but there are dozens of tricks...
Regular Dream, Somewhat. You dont really have much control over regular dreams, so it makes it much more difficult.

I cant really give much feedback as to how in regular dreams, considering that i would be considered lucky, since I pretty much never have bad dreams, or ones that cause panic like that... Im sure people on this site can help you if you were to make a new thread discussing just that.