Would it be ethically sound to love a machine that is a perfect replica of a

Read another response by Allen Stairs
Read another response about Love, Ethics
Would it be ethically sound to love a machine that is a perfect replica of a human? For example. If it was impossible for anyone to tell the difference, would it be wrong? If this robot were programmed to have human feelings and think in a manner that is indistinguishable from a human, would it be moral to love them as though they were a human. (apologies if this is unclear, English is not my first language)