The bees are very gentle and generally they mind their own business, but it is possible to get stung if you swat at the bees, stand directly in front of their entrance, or otherwise threaten them.  Bees die after stinging, so they don’t just randomly sting someone and, in fact, you have a higher chance of being stung by a wasp than a bee.  If you think you might have an allergy to bee stings, which is not the same as an allergy to wasp stings, you might want to ask your health care provider about having hives in your yard as well as getting a prescription for an Epipen.  It is best that you not be close to the hives during or shortly after inspections, unless you are wearing a bee suit.