It is fine to check your heart rate on your phone's heart rate monitor when training. The only problem is that phone heart rate monitors require you to stand still. Your heart rate might drop a little so the reading on your phone might be lower that what your heart rate actually got up to. Ask the race organizers about whether you are allowed to use a phone at race time.