People do it now with stuff like Replika. Think of how they're treated. Perhaps in a society with lots of AI, embodied or not, people would care less. But it's definitely a little weird now especially with how limited AI is.
If some general human level is AI emerged like in Her, I'm sure people would fall in love with it. There's plenty of lonely people who are afraid or unable to meet people day to day. I think I'd see them with pity as they couldn't make do with human connection, at least until I understood how advanced and how much interiority this new AI had - then I'd probably be less judgemental.
When I think of my former friend I grew up with that is permanently unable to get a girlfriend, he was cool as a friend. But he was a creep a bit to women, not respectful, resentful for not getting female attention, and it just grew and got worse - but I didn't see that side of him at all until I transitioned lmao, I guess it only came out to people he wanted to bang.