Yes, it is possible to obtain a Petilil in Black 2.
On Route 4, you can do an in-game trade with a person for a Petilil. It is Modest nature, holds a Power Anklet and is level 20. You must give him in return a Cottonee.
The man is on the right side of Route 4.
This is the only way.