Swimsuit as a shapewear

Can you wear a swimsuit as shapewear?