Yes, both applications and infrastructure can be hosted in the cloud. Cloud computing provides a scalable and flexible environment where applications can be deployed and accessed remotely, while infrastructure resources are managed and provisioned by cloud service providers.