My former employer advised me not to take two salaries at the same time. I personally don't think it's a problem. Others may think differently, of course.