What do I do?? Am I bad friend

Maddi
So my friend broke up with her boyfriend which I am still talking too!!And I know this is a silly question but can I get with him even if he dated my friend. I think I might really like him and he's so nice and good to talk too.She broke up with him and she says she's over him and everything. What should I do? And what's considered a bad friend