Yes!
For example, this will measure per day, resetting at midnight:
- platform: history_stats
name: Something
entity_id: person.xxx
state: THE_STATE_TO_TRACK
type: time
start: "{{ now().replace(hour=0, minute=0, second=0) }}"
end: "{{ now() }}"
More info: Prevent zone automation from triggering when briefly entering zone - #5 by Didgeridrew.