Was Pennsylvania founded to be refuge for the Catholics?

No, Maryland was founded as a refuge for Catholics, not Pennsylvania.