Should someone lose their job because of an offensive comment?

Should someone lose their job because of an offensive comment?