It will depend on the build generation of the particular aircraft and what is being used as the configuration sensor.
In the NG the warning comes from the PSEU which is the same source as the transit light. You will get the warning.
Some older aircraft still have the switches in the slat actuators for the position sensing to light the extend light and different switches to activate the TO warning. In that case you won't get the warning.
There are five configurations that I've worked and they all have different configurations and mechanisms to provide the indications and warnings.
I have no idea how many TO warning configurations there may be when you consider that some aircraft may actually have a retrofit system installed because they were built for a customer who didn't want it and it wasn't mandatory yet.