(a) It is an affirmative defense to prosecution under Sections 13A-13-4, 13A-13-5, and 13A-13-6, if the parent voluntarily delivers the infant to an emergency medical services provider or a baby safety device pursuant to this chapter.
(b) Nothing in this section shall prohibit the prosecution or investigation of any allegations of abuse or neglect of a surrendered infant.