Yes. If the application specifies the name QMgr, then the specified name should actually match the connected QMgr. However, if the application leaves the name QMgr empty, then any QMgr answers on this host, the port and channel are accepted.
For example, if you define a managed entity, it might look like this:
DEFINE CF(JMSDEMOCF) +
SYNCPOINTALLGETS(YES) +
TRAN(client) +
HOST(127.0.0.1) CHAN(MYAPP.SVRCONN) PORT(1414) +
QMGR( )
If you are not using JNDI, leave an environment hash table entry for the name QMgr.