Cook the spaghetti according to package instructions until al dente; drain and set aside.
In a large skillet, heat the olive oil over medium heat. Add the chopped onion and sauté until soft and translucent, about 5 minutes.
Stir in the minced garlic and cook for an additional minute until fragrant.
Add the crushed tomatoes, heavy cream, oregano, basil, salt, and pepper. Stir to combine and let the mixture simmer for 5-7 minutes until slightly thickened.
In a large mixing bowl, combine the cooked spaghetti and the creamy tomato sauce. Mix well to ensure the pasta is completely coated.
Transfer the pasta mixture into a greased baking dish. Sprinkle the mozzarella cheese and parmesan cheese evenly on top.
Bake in the preheated oven for 20-25 minutes, or until the cheese is bubbly and golden.
Once done, remove from the oven and allow it to cool for a few minutes before serving.
Garnish with fresh basil leaves for added flavor and presentation.