raw fish

I have some pasta I wanna heat up and I wanna cook some salmon to eat with it

Can I put the pasta in the oven with raw salmon on top of it to cook the fish and heat up the pasta simultaneously or do I have to cook the fish separately?