There may be a section in your contract that restricts you, by law, to work for a rival company for a certain time. You should always read your contract before signing it.