You can shoot a burglar if needed once they enter your house.
But you can only shoot the burglar if you fear your life is in danger and cannot get away from the burglar.
If possible you should get yourself and any family members out of the house first and have them call 911 or you should call 911 if possible to do so.
If you fear that the burglar may harm you or has a knife and is coming at your or has a gun and could shoot you then you can shoot them to prevent harm to yourself or family.
Only do so though if you have absolutely no other choice.
You can't shoot the burglar just for breaking into your home but can shoot them if they're trying to harm you.