Accidents will occasionally happen but if you put in the hard yards with your puppy [or better still with your rescue] your dog will be house trained in a relatively short time. It requires a level of commitment and patience. Getting angry makes you look weak in the eyes of your dog. She will want to please you and follow you if you show calm assertive energy.
No blame, just persistence and routine.