Yes, this process will end in a loop for some numbers.
For example, if we start with the number 6, which is even, we divide it by 2 to get 3. Since 3 is odd, we multiply it by 3 and add 1 to get 10. Continuing with 10, we divide it by 2 to get 5, which is odd. We multiply 5 by 3 and add 1 to get 16. Continuing with 16, we divide it by 2 to get 8, which is even. We divide 8 by 2 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to get 2, which is even. We divide 2 by 2 to get 1, which is odd. We multiply 1 by 3 and add 1 to get 4, which is even. We divide 4 by 2 to