No. Mammals are not the only animals that give birth to live young. Several species outside the mammal class also practice live birth.
Examples include certain reptiles such as rattlesnakes and common lizards, fish such as blue sharks and Pacific Ocean perch, amphibians such as the common toad and African bullfrog, and even some insects like the giant water bug.