If "Sara borrowed the book from the library because she needs it for an article she is working on. She writes it when she gets home from work.", is "She writes the article when she gets home from work." correct?
yes