You can do that as part of your work; but it will not be true that any solution of cosx=siny will be a solution of the system.
You might then solve for y in terms of x and then put that into either original equation.
Possibly the easiest way is to examine each of the original equations and eliminate the trig entirely. For example, if the sines of two numbers are equal, what is true of those numbers? (Be careful!)