Generally, no — not without selling your home. As with any investment, you aren’t guaranteed to get back the money you initially put in. That said, of all investment types, real estate is generally one of the safer ones. Home values tend to rise over the years, which means you should be able to sell your home for more than you bought it for. This means you could get your down payment back and more.
If you need the money back sooner, you might consider refinancing or getting a home equity loan or home equity line of credit.