Yes, those translate into W and M, respectively. And, as you've noted, both earn 100% credit. You'll even earn your 100% RDM elite bonus as a 1P on the Lufty flight.
Just make sure they are operated by the marketing carrier. If they are not then you run in to the potential for the codeshare mapping to be such that they do not earn, though they still might. It is just harder to figure out when codeshares are involved.