No, hiding likes on Instagram does not affect the algorithm calculation for engagement ratios. The algorithm still calculates engagement ratios in the same way, even if the likes counter is not visible to visitors. The post creator can still see the total number of likes on their post, but it will not be visible to others.