Will the H Driver L298n run in my project already running a L293d?

I need to control more powerful motors, up to 2A, so I want to replace the L293d with a L298n. The question is, do both double H-bridges share the same pins?

Thanks, Robert