Hello Ioannis.
As of here, if you use the hardware sensor described here along with App Inventor, you can.
You can do a search here to find more queries.
https://community.appinventor.mit.edu/search?q=heart%20rate