OS Extension for Safari

I want to create a small extension for Safari. I read the documentation and followed the videos: https://developer.apple.com/safari/extensions/


They talk about extensions for an existing app. I want to create only an extension I mean something that anyone that uses Safari can use. In that case, should I create a new project in XCode and then add file > new > target. Is that correct? I am not sure if I understand.