is it safe to use samsung 32gb evo sd card to samsung j2 prime?

Solution
Why wouldn't it be safe? Unless there is a virus, malware, etc on the card, it is the wrong size or it is damaged, it should work. Check your phones SD card data limitations. It should tell you the max space a SD card can have.