Short answer. No. Article 933 says a legacy of a thing that belonged to you when the will was made is without effect, even if you later sold it. If you got the thing gratuitously after the will, you can claim nothing; only if you acquired it for value can you demand reimbursement from the heir or estate.
What the law says
If the thing bequeathed belonged to the legatee or devisee at the time of the execution of the will, the legacy or devise shall be without effect, even though it may have subsequently alienated by him.
Civil Code, Article 933 — A Thing the Legatee Later Sells. Read the full provision →
What the law says
if it has been acquired by onerous title he can demand reimbursement from the heir or the estate.
Civil Code, Article 933 — A Thing the Legatee Later Sells. Read the full provision →
What Article 933 provides
Article 933 provides that if the thing bequeathed belonged to the legatee or devisee at the time of the execution of the will, the legacy or devise shall be without effect, even though it may have subsequently alienated by him. The decisive moment is when the will was executed. If the thing was yours then, the gift is void from the outset — and stays void even if you afterwards sold or gave it away. Selling it later does not revive a legacy that never had effect. The law fixes the question once, at the date of the will, and your later dealings do not reopen it.
Why the date of the will controls
The rule flows from the same principle as the neighbouring provisions: a testator cannot give you what is already yours, so a gift of your own thing is empty when made. Because it was empty from the start, nothing you do with the thing afterwards can turn it into a valid legacy. If you sell it, you are selling your own property and keeping the price; you have not lost a legacy, because there was none to lose. This is why the article looks only at ownership at execution and treats the subsequent sale as beside the point.
The exception: acquiring it after the will for value
The article addresses a different case — where the thing was not yours at the will's date but you acquire it later. If you acquire it gratuitously after such time, he can claim nothing: you already have it for free, so the legacy adds nothing. But if you acquire it by onerous title — you paid for it — then he can demand reimbursement from the heir or the estate. There the law sees that you spent your own money to get what the testator meant to give you, and lets you recover that outlay from the estate, so the legacy is not wasted.
Working out where you stand
To place your situation, fix two dates and one fact. First, did you own the thing when the will was executed? If yes, the legacy is void and a later sale changes nothing — you cannot claim its value. If you did not own it then but got it afterwards, ask how: gratuitously, and you can claim nothing; for value, and you may seek reimbursement of what you paid. Keep the deeds and dates showing when and how you acquired or disposed of the thing, because those, matched against the date of the will, decide the question.