As both sensors have a NAMUR rated output, the answer is yes. There may be slight differences in switching frequency capabilites, but the actual output power levels and switch capacity are per the NAMUR specs.
For future posts, please provide more information on the parts, specs, vendor, etc. More people might be able to help. It is only pure luck that I recongize Pepperl-Fuchs and Turck numbering schemes.