Might be legal. But certainly inappropriate and unethical.