Hello,
The word "accost" does not have only negative meaning. It means to confront boldly, it also means to approach, especially with a greeting, question or remark.
Yes, you can accost a person on the street or in the bar just to talk to her and know her better.
Regards.