Great question — answering as the UphillTech team:
Yes, you can technically do this, but it's usually not recommended due to potential duplicate content issues. Search engines may view them as competing and lower the rankings of both subdomains. If you need to use the same content, it's better to think about canonical tags to point to the original version to help search engines understand which version to give preference to when indexing and ranking.
Full answer by Matt Distefano: https://webmasters.stackexchange.com/a/145032 (CC BY-SA 4.0).
Need it done for your business? UphillTech.