Is it ok if we can't see the heartbeat at 4 months?

No. Sometimes months can be confusing or even wrong. The real question is the size of gestation and has there been a hb earlier? Fetal heart motion should be seen by 6 weeks, if dates accurate. If there has been positive diagnosis of preg for 4 months and still no hb, that would be of concern.