Time Complexity doubt

Here, Time complexity is O(N) right?