i want to get a machamp and gengar in Pokemon go but I'm too lazy to get the candies and you cant trade Pokemons back so if I traded my machoke or haunter to another account and then used that account to trade with my main account would that work
It's not trading back that's blocked: It's trading a mon that was already traded that's blocked.
So no this wouldn't work.
Source: https://bulbapedia.bulbagarden.net/wiki/Trade#Pokémon_GO