In theory it will work but without a piping diagram, it would be difficult to be certain.
Your best approach would be to be sure that the tankless hot water feed flows into the onboard hot water tank which essentially would replace the cold water feed into the onboard tank. The connection to the onboard tank should be made between the tank and the cold water IN check valve. The check valve (which should be in the cold water make up to the onboard tank) prevents hot water from migrating from the onboard tank backwards and into the cold water lines that feed your sinks and showers. This occurs primarily due to thermal expansion of the water being heated.
This plumbing will basically place your tankless heater in parallel with the onboard tank and allows you to heat the water with either or both.
This would also require an additional check valve to be placed between the tankless heater and the onboard tank to prevent water flowing from the onboard system to the instant hot water system and beyond.