Although, it is not completely possible to prevent a yellow jacket from stinging, one can take precautions that reduce the risk of getting stung. Yellow jackets tend to hide around porches, decks, stone walls as well as corners and holes around the house.