Coffee grounds are a good source of nitrogen, which is essential for healthy plant growth. They also improve soil structure and drainage. However, coffee grounds are acidic, so they can lower the pH of the soil. Marijuana plants prefer a slightly acidic to neutral soil pH, so this could be beneficial.
However, coffee grounds can also retain too much moisture, which can lead to root rot. Additionally, the caffeine in coffee grounds can inhibit the growth of some plants. It's important to use coffee grounds in moderation and to monitor the pH and moisture levels of the soil.