Does AA similarity hold for any shape polygon?

Find the ratios of the sides of the rectangles. Are their ratios equal? Should you try pairing up different sides? Are those ratios equal? Are the figures similar? If two of the same type of polygon other than a triangle have corresponding congruent angles can you assume they are similar?