i mean obviously thats not exactly what u should say but considering the amount of guys who are just like omg i dont know how to ask her out!11 and get in their own heads about that shit u might as well say something vs waiting forever and them inevitably labelling u as just a friend
also its completely context dependent like u say some shit like that to a classmate it's mad weird and awkward but if it's a tinder match or smt like why tf not they obviously already are interested to some degree it doesnt rly matter as long as u get the point across without weirding them out or typing an entire novel