I have Virginia LLC and my LLC registered in Maryland as non-Maryland LLC. Do I need to pay state tax to the Maryland?

My Virginia LLC bought property  in 2020 and also sold it in 2020 in Maryland with 80K profit.  Does my LLC subject to state tax in Maryland? My LLC is S-corp