They sell different packages and some come with a chest strap. I got just the bike and shoes. I already use an Apple Watch to track my heart rate for everything else, and it's been rated as accurate.
But if you got a chest strap with it, that would 100% do the same thing.
I like having one device that tracks my heart rate through all of the activities I do (including sleeping).