I cant say for sure, but we have the manuals for both those engines as pdf's here, you can compare the wiring diagrams to check
Boating Resources
it will be the in the complete Yamaha. Mercury. Mariner manual 1995 to 2004 book, bottom of the page.
Will