Yes, you can send messages via iMessage even if you have an eSIM plan without a phone number. That’s because iMessage and other features, such as FaceTime, only require an internet connection to work and don’t have to be linked to a phone number.