Yes, knitwear is office appropriate. For smart, corporate environments or customer-facing roles, a lightweight knitted sweater or cardigan is often best.
Neutral colours like black or navy can help you maintain a professional appearance and ensure that work knitwear can be easily paired with shirts, blouses, skirts, and tailored trousers.