Depends on how he otherwise would’ve used that profit. If he was going to blow it all on luxuries then that would seem pure greed, but if he was going to responsibly use it to establish some financial security, I wouldn’t consider that immoral. Was there anyone really hurt by his actions?