If a shield is plugged into a port, then the port is in use and cannot be used otherwise. Unless it is simply an extender shield which is not the case here.
If your Arduino has extra pin holes, you can hardwire other pins for your application. I often buy stackable headers along with a shield, so I can stack or wire to unused pins.