Absolutely yes. Since you’ll be gluing the entire thing together, the resulting joinery is much stronger and durable than the screw one. Of course, some people prefer using screws as they believe that the bond will last longer than the glue, but screws are subjected to rust, which is why you should consider dowels as your primary choice.