Another way to say "You can use an oven to bake a cake." is "something you can bake in an oven is a cake."