Yes, you should put a comma.
A comma is usually used in the middle of a sentence to separate two clauses, or right before a conjunction. Since “like” is a dependent clause in this sentence, as “it can be attractive” can stand alone, a comma would be put before it. It may also help to read the sentence and see if there is a natural pause to it.
In the short story The Metamorphosis by Franz Kafka he lines reveals that:
Gregor does not want to leave.
The speaker is narrating in the third person concentrating mainly on the feelings, thoughts, and actions of Gregor Samsa in an unchanging and flat tone.
Did you have any answer choices or was it free response?
free response: He should read more carefully and take notes on the important details.