If I have a generator matrix, G how can I find out what the code, C is?

Say for instance G is 5 * 2 matrix with rows [1 0 1 0 1] & [0 1 0 1 1], to work out the code is it simply all combinations of the 2 rows?
I.e the code would be {0 0 0 0 0}, {1 0 1 0 1}, {0 1 0 1 1}, {1 1 1 1 0} & {0 1 0 1 0}

I would appreciate any advice thank you!