Can you mix raw chicken and French fries dip them in the same flour batter?
As long as you are cooking both, as you suggest in your question, there is no danger. Any potential hazard will not survive the heat of cooking.