When they are still juveniles they have a caniballistic streak. Based on others experience and what I have heard endlicheris are the ones that eat each other most frequently when young.
I think it is fine, although there is a small chance it may get eaten. I have never kept ljws when small so I’m not sure. If kept both fed well it would lower the risk