Yes, it should work -- as long as you purchase a retail version of Tiger that is equal to or later than the version that shipped with your G5.
For example, if your G5 shipped with Mac OS X 10.4.8, you cannot buy a Tiger install disk that is 10.4.7 or earlier. You must use 10.4.8, 10.4.9, 10.4.10 or 10.4.11. To be perfectly safe, I would recommend 10.4.9 or later, since sometimes Mac computers ship with 10.4.8, but small tweaks have been made to the gray restore disks for that computer that are not present on the 10.4.8 retail disk.
I'm just using 10.4.8 as an example -- your G5 may or may not have shipped with 10.4.8, so apply the above rules to whatever version the G5 originally shipped with.
It would probably be easiest (although not the cheapest, since Tiger is less expensive than Leopard) to purchase a new, retail Leopard install disk set -- unless there is some reason you need to run Tiger instead of Leopard.