No. If a person contributes for only a few years, he'll still receive a higher pension when he retires, but on a pro-rata basis according to his contribution. Obviously, he'll receive the full amount if he has worked for 40 years. If a person contributes for five years and retires at the age of 55, he'll receive a higher amount, but not the full amount.
On November 14th, 2016. See this statement in context.