Yes you can providing they are the same data type.