You are not just planning to move from one job to other, what have you planning is changing from one filed to other.
I could feel your desperate for mechanical field. But before you give up on your existing field, think what made you to decide so. Is it your existing company? You may not like your existing company or your current job profile. Don't confuse it with the entire industry. You would have had many dreams to achieve in the field of mechanic, when you were studying. Do you want to quit, before you accomplish them? those are my questions, you just answer these questions to yourself, then you think of switching to software. Because in life, few roads can never be traveled again.
OK, if you have answers for everything and finalized to switch; make use of opportunities available in IT industry, then also it is fair. As long as you are qualifying yourself to the job you are assigned, there is nothing wrong in anything that you take up. In day today life, we see many people start up their life in one field and top at different filed.
Before you take up IT company, analyse yourself, understand your strengths and weakness. If anything need to be changed from your end like attitude, communication, skills etc, try changing it first and continue searching for job in mechanical field itself. Or qualify yourself to IT industry with proper education.