You can do this although you can get adapters for virtually nothing that make the appropriate connections rather than having to make your own. That said, you can easily pick up a cheap switch for under $10 (and only a few $ more for gigabit) so I really struggle to see a reason for doing this sort of thing.