Yes, your printer can be connected to your wireless network (with a router) and be Wi-Fi Direct enabled at the same time.
The wireless and Wi-Fi Direct networks are separate networks, each with a unique IP address. A device connected to the router will not be able to communicate with a device that is connected to the printer's Wi-Fi Direct network. However, both devices can use the printer in their respective networks.