First of all, why the Murcia area? There are some lovely parts of Murcia, but the airport access still isn’t great, and you will find more demand for rentals year round further north in Alicante.
If you can afford to buy the property you want to live in and, another one to rent out then great. But if buying two means your main home budget is limited, forcing you to compromise on size or location, then is it worth it?
If the rental property income will be important to your finances, then you need to be very sure of the expected rental income (high/mid/low season rental prices and occupancy rates). Do a lot of research on that question.
Good luck, and let me know how you get on.