Yes, the IRS will accept either.
According to the IRS:
Taxpayers or Tax Professionals can use certain private delivery services designated by the IRS to meet the "timely mailing as timely filing/paying" rule for tax returns and payments. These private delivery services include only the following:
CLICK HERE FOR THE LINK
CLICK HERE for acceptable delivery services for the IRS