Yeah! it's called masturbation. But I think you want to know if you can orgasm just by thinking about it. Yes;with focus it can be done.
It would be possible but extremely difficult and unusual, but it doesn't seem necessary. When you feel the need for this to happen, do it the easiest way...with your hand, or rubbing against a pillow, etc. If your question is actually more involved, ask more!
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them