No, telling someone they are ugly is not an appropriate or respectful way to try to attract them or build a relationship. In fact, it's likely to have the opposite effect and push the person away. Insulting or demeaning someone's appearance is hurtful and offensive, and it is not a basis for a healthy relationship.
Attraction is complex and depends on various factors, including physical appearance, personality, interests, and compatibility. However, using insults or negative comments is not a constructive way to approach someone you are interested in.
If you want to build a connection with someone, it's best to be genuine, respectful, and kind. Engage in meaningful conversations, find common interests, and show interest in getting to know them as a person. Treating others with respect and empathy is crucial for forming healthy and meaningful relationships.