This question already has an answer here:
You can, technically.
You should not, however.
Ask the question where it is most appropriate in your eyes. If needed, it can get migrated.
Asking on two (or more) sites on the network makes migration much more difficult.
If you do, bear in mind that you're asking two different audiences, with two different focusses, and should be expecting different answers. There should be a reason for asking on both sites, and you should phrase your question to make that reason apparent. If you write the question completely differently, with a different focus, for each site, that should be fine.
(In other words, don't ask the same question on both sites, but you can ask two different but overlapping questions on both sites.)