Short answer: yes — with a couple of caveats.
Warhammer 40,000 is far more than a tabletop battle game. It is a full hobby that mixes strategy, craftsmanship and storytelling. You assemble and paint your own army, then field it in games where positioning, army composition and a bit of luck decide the outcome. The setting — a grim, gothic far future of endless war — is one of the richest in modern fiction, and it pulls you in whether or not you ever roll a dice.
Before you dive in, be honest about three things: the upfront cost of a starter force, the time it takes to build and paint models, and whether you have a local group or store to play with. If those fit your budget and schedule, the hobby rewards you for years. If you are unsure, try a starter set or borrow a friend's army first.