Is Fremantle the capital of Perth?

No: Perth is the capital city of Western Australia. Fremantle is the port city which is located south of Perth, and was the first settlement in Western Australia.