As long as that water tank is dedicated to toilet flushing only and is entirely separate from the fresh water system--which means -0- common plumbing, not even the same water fill or vent--it's ok to use for toilet fill only. However David's suggestion is a much better idea and a LOT easier to do...it's only necessary that the toilet and the head sink be on the same side of the keel.
Simply disconnect the toilet intake line from its thru-hull (close the seacock first!) and reroute it to tee into the head sink drain line using a simple pvc tee that needs to be below waterline as close to the sink drain thru-hull as possible. This will allow you to flush normally with sea water, but allows you to rinse it out of the ENTIRE toilet and plumbing by simply closing the sink drain thru-hull, filling the sink with clean fresh water (NEVER flush using gray water...soap scum, body oils, toothpaste etc are not good for the toilet pump) and flushing the toilet. Because the drain thru-hull is closed, the toilet will pull the water out of the sink, rinsing all the sea water out of the intake line, toilet pump, channel in the rim of the bowl and the toilet discharge line. You could even just leave the sink drain thru-hull closed except when needed and flush using fresh water from the sink all the time if you want to.
This will leave you with an un-used thru-hull that you could use for a washdown pump, heat/ac pump or whatever...or you can just keep it closed or remove it and glass over the hole.
I first learned of doing this in the mid-90s from a Tartan owner customer whose boat was plumbed this way by the builder...in fact several builders used to do this because it eliminated one hole in the boat and also saved 'em the cost of a thru-hull and seacock. I thought it was the best idea since the automatic bread slicer and have been recommending it ever since.
--Peggie