If you mean "will Nasm assemble a program written to be assembled with Masm?", the answer is "no", generally. Such a program might be translated to assemble with Nasm - somewhat tedious. I'm not sure how you'd "execute" a Masm program on Nasm.
Welcome to the Forum!
Best,
Frank