That could and would quickly lead to a bizarre and rather frustrating spiral, where you spend gold to train and by so doing get enough xp to need to train again, but you can't because now you're out of gold......
The DM I play with introduced a variant on this into his game where if you spend gold on public works (buildings, art, fountains, etc.) you can get xp for doing so on something like a 1 xp per 3 gp basis; and I gotta say, I'm not a fan. It takes xp, which IMO should be a somewhat direct reflection of the character's in-fiction growth and learning, and turns them into something of a reverse metacurrency where you can buy them but not spend them.