Do app developers have the option to prevent their Dock icon being "pinned" by user?
No, there's no option for app developers to keep their icon from being pinned by the user.
The app developer should instead ensure that the secondary process does not come with its own Dock icon.