Sure you can ….. if you don’t want your plants to grow as well as they can and produce as many buds as possible and as large of buds as possible and if you want less THC than is possible.
The leaves are like solar panels, they collect the lights energy that they then convert to do all the things plants need to grow and to grow the best they possibly can. Buds to not need massive direct light to grow but leave do need as much light as possible so all your plant can grow.