Test cases run on iOS 11 and iOS 12

Hi All,

I have developed some test cases on iOS 12. If I need to run it on an iOS 11 device (iPhone 6 Plus), do I need to update the code ? Currently, I do not have iOS 11 iPhone 6 plus and the apps can only install on a real device.

Thanks.