No, the order of completion of your MPEs and MFE does not matter. You can take your MPEs and MFE during any block, as long as you will ultimately have completed three electives, where at least two are MPEs.