It's called a mule account, and the concept involves using someone else to hold your money. There's not much difference from your idea in terms of legality. You may use it for legitimate transactions, but you're still using someone to do it when you shouldn't.