A question about the touch phat

Sure! As long as you also connect the power and ground pins it uses.
Even if you solder the pins to the pHat, you can still pull signals straight from the top of them through the board (as long as they aren’t using any fancy voltage buffers, see: Explorer pHat Impedance Mismatching).