No, they cannot move any way they like. Chess is a game governed by rules and chessmen move in a restricted way.