Can I take the pill safely with my preeclampsia medical history?

Yes. Assuming you have no other medical problems a history of preeclampsia does not disqualify you from taking birth control pills.