Can we look to agadata sources to derive certain halachos?

Can a slave commit to accept the responsibility of a kesubah or is he unable to make such a commitment because he cannot own property?

Sources can be found here