Yes, you can receive messages even when appearing offline. However, the senders won't know that you're online unless you switch your status back to online.