Yes. You are only allowed to add the extensions to Safari from the App Store. The extensions from App Store are supported and verified by Apple. So, Safari extensions are safe.