I wouldn't if you didn't know anything about yachts: they're complicated, expensive to fix and expensive to keep.
Do you live near the coast with decent sailing and facilities? Are you on Gibraltar or would you be sailing it back?
Personally I'm not a fan of Beneteau boats, I prefer something a bit more solid and I prefer a larger wheelhouse type cockpit. But I do like the space in the main cabin and the proper bed. And it seems well priced
For a 40ft boat I'd expect a twin cabin which gives more options. Inside it looks a little tight.