I don’t know if its a sin unless your filled with lustful thoughts, you obviously know what your thinking about and its a mortal sin, so you need to get rid of those thoughts, before you act on them. The mind is the devils workshop. It is good your putting a lot of thought on something before acting on it, means the Holy Spirit is working in you.
DISCLAIMER: Catholic Answers has turned over the archive to Catholic-Questions.org and no longer owns, manages, or moderates the forums. For additional apologetics resources please visit www.catholic.com.