Most publishers will have a contract with anyone they publish. Matters like this are usually spelled out there. Generally you cant take an idea elsewhere while the contract is still in effect. In some cases you can, but you have to give your current publisher the right of first refusal. Meaning you have to pitch the other project to them first, and only if they pass on it can you take it elsewhere.