Sort of, but it's not very strong relationship of 'cause and effect'.
"而" is a conjunction, if I replace it into "才", it'd be the same meaning.
你是否曾经因为她好看才喜欢她的?
I guess it's more important to learn how to use conjunctions instead of these sentence patterns, because for native speakers, they don't work hard to remember these sentence patterns.