This question already has an answer here:
marked as duplicate by gnat, bluefeet, psubsee2003, Toon Krijthe, Time Traveling Bobby Mar 25 '13 at 13:36
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
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.)