Dangerous or not?

I'm 38 weeks 4 days. Just found out my dog has maggots from being infected possibly by a botfly or eating something that had larvae in it. Could this potentially be dangerous for me and or baby? Also have a 3 1/2 yr old and twin 9yr old brother and sister?

Add: we know this due to she started to get sores on the skin and bumps under skin and we have been cleaning them. Squeezed one today and a maggot came out.