Yes, it is legal to camp in designated areas and campgrounds within Pennsylvania. Camping is allowed in designated campgrounds and specific areas within state parks, state forests, and national forests. In state forests, you can engage in dispersed camping, also known as primitive camping, but you must follow certain rules and regulations. For example, you need to obtain a free permit for stays longer than one night, and you must camp at least 25 feet away from trails and water sources.
For private land, you need the landowner's permission to camp. There are many private landowners who offer camping experiences through platforms like Hipcamp, where you can find unique camping spots in Pennsylvania.