Yes, it is normal to masturbate and it is also normal to have thoughts or fantasies of masturbating with others. These kinds of thoughts are part of a large range of normal sexual expressions. Some people practice this with others, and some people just fantasize about it.
Please leave a comment to let us know if that answers your question or if you need more information.
For other readers, please feel free to leave a comment, or let us know if this was helpful.