Yes breathing in dog hair that floats through the air could get into your lungs and cause breathing issues and respiratory problems.
If you already have respiratory problems and other breathing issues then being around dog hair and dogs that shed hair a lot could cause further breathing problems.