Firstly, make sure the baby is latching correctly. You can refer to this clip for tips. https://www.youtube.com/watch?v=NWL8dNsCAHs
If you still having sore nipple, you can apply nipple cream such as medela brand after each nursing. Also, use your own breastmilk to apply on the sore area and let it air-dry.