Greetings Kate welcome to the Forum.
Are you talking about the Socket and Cradle for a 1 1/4" wood Dowel ?
Sure you can !
Use screws or drill through the sides, and bolt hangers (socket and cradle) in.
Cut the Dowel to fit and lay it in um.
Have a good Day !
S.W.