No..,square has four sides so perimeter is 36 while a pentagon has 5 sides which makes its perimeter 45

No, because one polygon has more sides than another.