It is from the family of serviceberries which has various names, e.g. "wildplume", but I am not certain about thecannot decide between two species. In any case they seem to be eatable raw and cooked, but I have not tried it myself.
I am inclined that it may be Amelanchier ovalis:
Its pome fruits are edible and can be eaten raw or cooked.
It also may be Amelanchier canadensis about what is said
Edible fruit - raw or cooked. The fruit contains a few small seeds at the centre, it has a sweet flavour with a hint of apple. It can be eaten out of hand, used in pies, preserves etc or dried and used like raisins.