No no no, on the last beat, resp. eighth of bar 17, there's B flat major 7th chord that needs resolution at beat 1 of bar 18. Which is an E flat major 6th chord. Plus, you'll be getting the right cadence from beat 4 of bar 17 to beat 3 of bar 18: beat by beat - tonic (B flat major), subdominant (E flat major), dominant (F major), tonic again with the high B on bar 3 wrapping it up nicely. There's no place for C major in there. But, first of all, the resolution of the Bb7 has to be there. (At least in a baroque fugue like that. Well, maybe in a sequence you could do it. But that's not the case here.)