Sure, and he still supported it the first time when it came to voting.
How many times has Trump changed his mind on issues? Cruz gave his reason for his change in position and they were sound.