Ideally, yes. You should have one on the hot side and one on the cool, and both identical. They should also fit in them pretty snug. Here's a quick excerpt from the caresheet provided here on this website:
HIDES
Ball pythons typically fairly shy and reclusive nocturnal animals and appreciate a good dark place to curl up and feel safe. It is best to provide two adequate hides in your BPs enclosure – one on the warm end and one on the cooler end so that it does not have to make a choice between regulating its body temperature and feeling secure (to their own detriment these snakes will sacrifice warmth in favor of a hide).
Hides can be constructed or bought in a wide variety of forms shapes materials. For best sanitation you should avoid hides that are very porous, difficult to clean or which could rot mold or mildew. Whether store-bought or homemade, a ball python will prefer a hide that is small and snug-fitting, so that it feels "hugged" on all side and even from above.