No.  Drywall is a gypsum material that's plastered on a mesh backing.It needs to be strong in all directions to hold up the weight of a shelf or handrail.