Of course! This also goes for tai-qi, wushu, progressive muscle relaxation, pranayama, holotropic breathwork, pilates, transformational breathing, autogenic training, and related practices!
If you are moving a lot during your practice (e.g., yoga), Spire may not sense all your breathing and won't necessarily give you an Activity notification unless you are making movements that resemble steps.