While the character she plays, Sara Fitzgerald, does have a shaved head in the movie, it was achieved using a wig. Diaz has stated in interviews that she was not comfortable with the idea of shaving her head for the role.
It's a common practice in film and television to use wigs and prosthetics for significant changes in appearance, especially when the actor is known for their signature look.