Which of the choices below correctly join these two sentences using subordination?

It rained all night. The roadways were flooded in the morning.

Because it rained all night, the roadways were flooded in the morning.

One option to join these two sentences using subordination is:

Because it rained all night, the roadways were flooded in the morning.