Yes, you can write a controller support add-on. The code in your script should work straight away.
However, note that custom add-on components are not supported in the Community Edition of Vehicle Physics Pro. The error you receive happens when trying to implement custom add-ons in VPP CE.
More information on the licensing tiers and features: https://vehiclephysics.com/about/licensing/