Yes, you can cook pasta in a rice cooker! Add pasta to the rice cooker and add enough water to fully submerge the pasta. The water-to-pasta ratio is typically around 4 cups of water per 1 cup of pasta. Then stir in salt. Close the rice cooker lid and turn it on, using the regular rice cooking setting. Periodically open the lid and stir the pasta to prevent sticking. Check it for doneness a couple of minutes before the suggested cooking time on the package to ensure it reaches al dente texture, then turn off the rice cooker. If there's excess water, you can drain it using a colander in the sink. Some rice cookers may absorb most of the water during cooking. Rinse as you usually would.