Ramen noodles are made with rice flour, while spaghetti and other types of pasta are made with semolina flour. The consistency of ramen noodles is firmer than pasta, so, while you can use spaghetti, the taste and texture of the dish will be different.