Well, it sort of depends. If you're married or in a relationship, lusting after someone who is not your partner, can be hurtful and dishonest. Everyone feels attraction to other people at times, it is only human, but if it is getting in the way or taking the place of your relationship, then you need to reevaluate why you're doing this with that person other than with your partner.
If it's unattainable and/or inappropriate, ex: celebrity, married or otherwise taken person, that's also not the best thing.
If you're single, well, as long as it's healthy and not intrusive, negative or obsessive,then why not let that person know you're interested!
If you're a minor, while it's perfectly normal to have these feelings, just make sure they're appropriate.