If you are sick with COVID-19, you can spread the illness to others. If you are isolated either in the hospital or at home (depending on the severity of your symptoms) you do not pose a risk of infecting others. 


References:

1.https://www.cdc.gov/coronavirus/2019-ncov/faq.html