Deut. 23:3
No Ammonite or Moabite or any of their descendants may enter the assembly of the LORD, not even in the tenth generation.
We need to keep in mind too, that the law hadn't been handed down by God yet, at that time. Later, Mosaic/Levitical law forbade the practice.
God bless you and yours.