Yes, colons can be used to separate two main clauses that are closely connected. You could use a full stop to separate them, but a colon helps emphasise the connection between the two main clauses.