What you worried about specifically? It's technically legal but if you're recording shared spaces you'll be liable to confirm to data protection/controller laws.
Your absolutely fine to install one especially if you're having trouble with something or someone.