Yep, except I see mania as a sort of happy-but-frantic event....whereas Pandora's Box (it was a jar actually, but who's to argue) speaks of foreboding and evil and nasty stuff.....
PB is a metaphor for committing what appears to be an insignificant action which releases out-of-control bad repercussions that, like toothpaste and genies, are very difficult to put back.
But, the psychological states of mania and PB repercussions would be very similar.
Bring on the mania!