Using Pen Name for Dissertation.

Hello everybody, sorry if I make any mistakes, English is not my first language.

Hello everybody, I am about to start my PhD next year, and I would like to know if I may not use my legal name as the author.

My last name is not my family name. Due to tragic reasons based off of racism and other issues, my name is not my family last name. However, I generally use this as my name informally with people. Will I be required to put my legal name as the author? And if I am, could I say my pen name, and then below in parentheses my legal name.

Thank you all very much.