Can I use sliding barn door hardware on a hollow panel door?
Depending on the exact sliding hardware you are using, it should be possible. Hollow core doors usually have a solid wood frame along the edges, though how far into the core this frame extends may vary. 

If you are using hardware like that shown below, you would need to make sure that the brackets attached to the wheels are anchored into the solid wood frame at the edges of the door.