You could, but when you generate gerbers you will get both PCBs in the same gerbers. Depending on how you intend to manufacture that may or not be a problem. You could even design them as a mini-panel.
Generally it is recommended to keep one PCB per project, but if you are aware of the limitations there is not really a problem. I guess worst case is you have to split it into two PCBs later.