Those two work together, just make sure the PC has an open PCI-e slot. Most do, but you can never trust factory build PCs to be upgrade-able.
If you're adding a PSU and a GPU, I recommend looking into building your own PC. The reason why factory PCs are so cheap is because they don't include a...