Yes, you can take GATE exam with mechanical. The GATE authority allows two paper combination for various papers in case any candidate wish to appear in more than one paper in the same year. The list of two paper combinations for GATE can be checked on the Shiksha page as well as the official website of GATE.