Yes, it is safe. As long as the hammock swing is securely fastened, and suspended high enough off the ground to avoid a collision — that includes having enough space around the swing area too — swinging is just fine.