Carbon filters are 100% legal. However, growing weed falls in a legal grey zone as every region has different laws so it is best advised to confirm with your local authorities before you begin to grow weed. Even in regions where it is allowed, there’s usually a restriction of how much qualifies for growing for ‘personal consumption’ beyond which you might require commercial permits so watch out for that!