yes, if you have to paid taxes, then you may not have to roll the full amount.
In any case, you can contribute up to the full amount of MPF.
https://www.sunlifeglobalinvestments.com/en/insights/investor-education/tax-and-estate-planning/transfer-of-a-foreign-retirement-plan-into-a-Canadian-rrsp-tax-rules-to-consider/
Transfer of a foreign retirement plan into a Canadian RRSP: tax rules to consider
Find out what are the rules applicable when transferring a foreign retirement plan into an RRSP on a tax-deferred basis
Transfer of a foreign retirement plan into a Canadian RRSP: tax rules to consider
In a world where cross-border mobility is important, many Canadians have benefited from work opportunities outside Canada in recent years. Some of these Canadians may have accumulated rights in a foreign retirement plan while working abroad and, coming back to Canada, many may have left such pension plans in a foreign jurisdiction.
The Income Tax Act (ITA), allows Canadian residents, under certain conditions, to transfer foreign retirement plans to a Canada Registered Retirement Savings Plan (RRSP).
In this document, we will discuss the rules applicable when transferring a foreign retirement plan - including a U.S. retirement plan - into an RRSP on a tax-deferred basis. We will also discuss the benefits and possible drawbacks of doing such a transfer.
Note that it is essential that an investor seek advice from a qualified tax advisor, planner, and/or legal advisor before acting on any of the information included in this document.
Foreign pension plans and the Income Tax Act
There is no specific provision within the ITA that allows a Canadian resident to do a direct transfer of a foreign retirement plan into Canadian RRSPs.
However, paragraph 60(j) of the Income Tax Act allows, under certain conditions, to do an indirect transfer into an RRSP of amounts that qualify as a superannuation or pension benefit from a foreign pension plan.
When determining whether benefits withdrawn from a foreign retirement plan will qualify under the par 60(j), a taxpayer should consider the following:
The withdrawal from the foreign retirement plan, must be received as a lump sum payment, and not be part of a series of periodic payments.
The pension benefit must be included in the individual's Canadian income tax, under subparagraph 56(1)(a)(i), and not exempt from tax in Canada because of a tax treaty.
When withdrawing a benefit from a foreign pension plan, the gross amount of the benefit withdrawn may be contributed to a Canadian RRSP, provided that the contributions to the plan relate to services rendered by the taxpayer while a nonresident of Canada.
The person must be a resident of Canada at the time of the contribution to their RRSP.
The contribution to the RRSP must take place by December 31st of the calendar year in which the person turns 71.
If all of these criteria are met, paragraph 60(j) of the ITA will allow the taxpayer to claim an offsetting deduction, if an RRSP contribution is made in the year the pension benefit is received or within 60 days after the end of that year. The amount of the deduction is limited to the lesser of the amount contributed and the amount of the benefit included in income. No RRSP contribution room is required; the deduction is over and above an individual's regular RRSP deduction limit.
If the requirements above are satisfied, the RRSP contribution can be designated as a "transfer" on Line 14 of Schedule 7, in the Canadian taxpayer's return for the year.