Baked spaghetti is generally finished in a variety of ways in the oven and is typically combined with other ingredients like meat sauce, spaghetti sauce, water, cheese and creams and baked in a baking dish.  Depending on the spaghetti recipe, you may not have to boil l the spaghetti pasta prior to baking.  Some recipes require boiled pasta, others require partially boiled pasta.