No, the G4400T is not compatible with the GTX 1050.
Your Pentium G4400T should work with your spare GTX 1050, but make sure the system meets the necessary requirements for compatibility.
For a graphics upgrade, you don’t have to worry as long as it can manage it.
You already have the CPU and GPU, so why not combine them and test? It wouldn’t hurt to see what happens.