Former Secretary of State Madeline Albright speaks at the Democratic National Convention in Philadelphia, Pennsylvania, July 26, 2016. Reuters

Madeleine Albright was raised Catholic, eventually became Episcopalian and later discovered her family had Jewish roots. But in President Donald Trump's America, the former secretary of state said she would identify as Muslim and register as such if the White House follows through on its promise to track Middle Eastern immigrants.

"I was raised Catholic, became Episcopalian & found out later my family was Jewish. I stand ready to register as Muslim in #solidarity," Albright tweeted Wednesday.

She also tweeted a picture of the Statue of Liberty with the quote: "Give me your tired, your poor, Your huddled masses yearning to breathe free, The wretched refuse of your teeming shore. Send these, the homeless, tempest-tossed to me. I lift my lamp beside the golden door."

"America must remain open to people of all faiths & backgrounds," Albright wrote.

Albright was the first woman to serve as U.S. secretary of state. She was born in Prague in 1937 but her family left after the Nazi occupation. She speaks six languages and served in President Bill Clinton's administration.

Trump unveiled this week a plan to stop accepting Syrian refugees and suspend the issuing of visas for Muslims from Iran, Iraq, Libya, Somalia, Sudan, Syria or Yemen for at least 30 days. On the presidential campaign trail, Trump said he would "absolutely" require Muslims to register in a database. Trump also plans to build a border wall along the U.S.-Mexico border and deport millions of undocumented immigrants.

In a tweet Tuesday, Trump said: "Big day planned on NATIONAL SECURITY tomorrow. Among many other things, we will build the wall!"

Other human rights activists have pledged to fight Trump's so-called Muslim ban by standing in solidarity with Muslims. "If you try to make Muslims register, we will all register as Muslim. So don't try to divide us," women's rights activist Gloria Steinem said over the weekend.