If you do this and a Bounty is placed on you, people will still hunt you, but their bullets will do no harm.
When in game you have the option to switch to Passive Mode, which allows you to go about your business without fear of being shot by other players. See also: How to Make Money in GTA Online.This works best on high-yield Jobs that can be repeated quickly.