I have a dog that barks SO loud for every little thing, is it mean to....

Is it mean to put a no bark collar when the baby gets here? 
She barks any time the neighbor gets home and goes absolutely crazy if someone knocks on the door. As if someone is murdering her. It gives me anxiety!