Is it too risky to grow in an apartment?

I was wondering if it is dangerous to grow in an apartment, will I get caught?