Question from the Swift test

Is the following code valid? ``` var x = 10 var y = x ```