What does Bonita Mean in Spanish?

Bonita in Spanish means beautiful. It can also mean pretty. So if I guy were to tell a lady she is bonita it may be considered as flirting or a complement.