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