Can I use any iDevice to test code?

I have a new computer and would like to dedicate it to just development work in Xcode, for this I have a separate developer account to my normal iCloud personal account. However, I only have one iPhone, a personal one. Can I test apps on my iPhone with my personal account on the computer with a separate developer account through Xcode?