Is it wrong to apply for and accept a job just because there is an employee there that you have a crush on?

I know this may sound like a childish question for a 31-year-old, but I was still in my 20s when I got the job that I have now, which I applied for for that reason.
Updates
+1 y
Sorry, I need responses right away because actually, this INDIRECTLY led to a problem at work that got me in trouble with my boss, because it led to me being irresponsible.
Is it wrong to apply for and accept a job just because there is an employee there that you have a crush on?
Post Opinion