Can you mount a headboard on a wall?

How? Thanks everyone!
  2 answers