Yes, that's OK.
36" x 18" of floor space (ie a "40 breeder" tank) is the minimum recommended
size for an adult beardie. Height doesn't matter so much, 18" to 24" is plenty.
Bigger is always better though. I keep my dragons in the equivalent of 75 gallon tanks, although they are custom made and have sliding glass fronts rather than being solid.
Just make sure to avoid the "55 gallon" tanks that you find quite often on craigslist and such. Those tanks are usually 48" x 12" which is great on length but isn't wide enough.