Go for it but choose wisely, your personal safety is paramount.
I've done it several times. Cyprus, Barbados, Madeira. Many hotels are now realising there's a growing solo travel market. Adults only ones an easy option. Likewise, companies like Jet2 offer solo travel discounts, albeit not very generous. Not interested in those specialist solo travel companies or cruises.
Cyprus I'd been to for many years so knew hotels, bars, etc. Barbados was for a significant birthday 10 years ago. Hotel all-inclusive, bit isolated so no going out alone. Day trip with 6 other guests, friendly, good fun. Sat alone for meals, no problem. Madeira for past 3 years. First time stayed in small boutique hotel, very good. Last 2 years, different hotel that had plenty of solo guests, groups, couples. Even airline crew. Staff very friendly. At no time was I made to feel uncomfortable for being on my own.
Now considering short break in Gibraltar and possibly Dubai later in the year. I've also heard Menorca is good for solo travel.
Sorry to go on a bit, but it's surprising how many places are safe for solo travellers...