You can use compound sentences anywhere that you have two related ideas that would otherwise be their own simple sentences. It’s a good idea to vary sentence types in your writing, and using compound sentences is one tool for doing so.