No, Abu Dhabi is not the capital of Dubai. This is a common confusion because both are prominent emirates in the United Arab Emirates (UAE).
The UAE is a federation of seven emirates: Abu Dhabi, Dubai, Sharjah, Ajman, Umm Al Quwain, Ras Al Khaimah, and Fujairah. The ruler of Abu Dhabi serves as the UAE President; the ruler of Dubai serves as Vice President and Prime Minister.
Think of it like: Abu Dhabi is to the UAE what Washington, D.C. is to the USA; Dubai is like New York City—the economic heart, not the seat of government.