If you make Social Security contributions in another EU country these contributions will be taken into consideration when claiming benefits in another EU country.