Yes, you can. Ordering has been guaranteed since ruby v1.9, very much intentionally.
The implementation of a ruby hash is now as a doubly linked list [0]. This has inevitably caused a slight performance hit, but the benefits far outweigh the cost IMO.